package com.dgut.declaration_of_health.controller;

import com.dgut.declaration_of_health.pojo.User;
import com.dgut.declaration_of_health.serviec.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("login")
    public User login(){
        return userService.login("ttjeff");
    }
}
